import service from '@/utils/request'
export const xmgwGetCategory = (params) => {
  return service({
    url: '/xmgw/xmgwGetCategory',
    method: 'get',
    params
  })
}

export const xmgwGetidCategory = (params) => {
  return service({
    url:'/xmgw/xmgwGetidCategory',
    method:'get',
    params
  })
}

export const xmgwDeleteCategory = (params) => {
  return service({
    url:'/xmgw/xmgwDeleteCategory',
    method:'delete',
    params
  })
}

export const xmgwCreateCategory = (data) => {
  return service({
    url:'/xmgw/xmgwCreateCategory',
    method:'post',
    data
  })
}

export const xmgwUpdateCategory = (data) => {
  return service({
    url:'/xmgw/xmgwUpdateCategory',
    method:'put',
    data
  })
}
